import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import queue from '@/pages/queue'
import mobile from '@/pages/mobile'
import login from '@/pages/login'
import checkin from '@/pages/checkin'
import result from '@/pages/result'
import loading from '@/pages/loading'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {path: '/', name: 'loading', component: loading, meta:{requireAuth:true}},
        {path: '/index', name: 'index', component: index, meta:{requireAuth:true}},
        {path: '/queue', name: 'queue', component: queue, meta:{requireAuth:true}},
        {path: '/result', name: 'result', component: result, meta:{requireAuth:true}},
        {path: '/checkin', name: 'checkin', component: checkin, meta:{requireAuth:true}},
        {path: '/mobile', name: 'mobile', component: mobile},
        {path: '/login', name: 'login', component: login}
    ]
})
